/*
 * An XML document type.
 * Localname: BrokerID
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.BrokerIDDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * A document containing one BrokerID(@http://www.hpsearch.org/schemas/2006/05/BSA) element.
 *
 * This is a complex type.
 */
public class BrokerIDDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.BrokerIDDocument
{
    
    public BrokerIDDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BROKERID$0 = 
        new javax.xml.namespace.QName("http://www.hpsearch.org/schemas/2006/05/BSA", "BrokerID");
    
    
    /**
     * Gets the "BrokerID" element
     */
    public cgl.narada.wsinfra.schemas.addressing.AttributedURI getBrokerID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.addressing.AttributedURI target = null;
            target = (cgl.narada.wsinfra.schemas.addressing.AttributedURI)get_store().find_element_user(BROKERID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "BrokerID" element
     */
    public void setBrokerID(cgl.narada.wsinfra.schemas.addressing.AttributedURI brokerID)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.addressing.AttributedURI target = null;
            target = (cgl.narada.wsinfra.schemas.addressing.AttributedURI)get_store().find_element_user(BROKERID$0, 0);
            if (target == null)
            {
                target = (cgl.narada.wsinfra.schemas.addressing.AttributedURI)get_store().add_element_user(BROKERID$0);
            }
            target.set(brokerID);
        }
    }
    
    /**
     * Appends and returns a new empty "BrokerID" element
     */
    public cgl.narada.wsinfra.schemas.addressing.AttributedURI addNewBrokerID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.addressing.AttributedURI target = null;
            target = (cgl.narada.wsinfra.schemas.addressing.AttributedURI)get_store().add_element_user(BROKERID$0);
            return target;
        }
    }
}
